﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BPM.Base.WFLib.GuideForm
{
    public partial class ToUser : BaseForm
    {
        public ToUser()
        {
            InitializeComponent();
        }

        public ToUser(WaitSubmitDesigner designer):base(designer)
		{
			InitializeComponent();
            this.办理人员.Text = activity.办理人员;
		}

        private void btnUserSelect_Click(object sender, EventArgs e)
        {
            frmUser frmUser = new frmUser();
            frmUser.ShowDialog();
            if (frmUser.Value.IndexOf("|") != -1)
            {
                
                this.办理人员.Text = frmUser.Value.Split('|')[0];
               
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {


            this.setTransact();
            activity.办理人员 = this.办理人员.Text;
            activity.处理方式 = "到人";
            this.Close();
        }
	}
}
